package com.lp.batch.service;

import java.io.File;
import java.io.IOException;
import java.util.Map;

import com.lp.batch.domain.Node;

public interface TemplateService {

	/**
	 * @param model that contains values, which will be merged to a velocity template.
	 * @return
	 */
	String mergeModelToTemplate(Map<String,Node> model);
	
	/**
	 * Create a page that records information about a node
	 * 
	 * @param directory where the page will be written
	 * @param node of a destination
	 * @throws IOException
	 */
	void createAPageFromTemplate(String directory, Node node)throws IOException;
	
	/**
	 * @param directory where the stylesheet must be written to
	 * @param stylesheet the name of the stylesheet
	 * @throws IOException
	 */
	void createStyleSheet(String directory,  File stylesheet) throws IOException;

}